// 父类  可以理解成为 prototype
class person {
	constructor(name, age) {
		this.name = name
		this.age = age
	}
}

// 子类   extends可用来关联父类
class Chinese extends person {}
class American extends person {}

const ChineseMan = new Chinese('张三', 18)
console.log(ChineseMan)
const AmericanMan = new American('jack', 18)
console.log(AmericanMan)
